local s4__zhenwei = fk.CreateSkill {
  name = "s4__zhenwei",
  tags = { Skill.Compulsory },
}

Fk:loadTranslationTable {
  ["s4__zhenwei"] = "镇卫",
  [":s4__zhenwei"] = "锁定技，对方角色计算与己方其他角色距离+1。",
}

s4__zhenwei:addEffect("distance", {
  correct_func = function(self, from, to)
    if table.contains(from:getEnemies(), to) and not to:hasSkill(s4__zhenwei.name) then
      return #table.filter(from:getEnemies(), function(p)
        return p:hasSkill(s4__zhenwei.name)
      end)
    end
  end,
})

return s4__zhenwei
